<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
<script>
window.onerror = function(message,url,line){
	alert(message);
	return false;
}


</script>
</head>
<body>
</body>
</html> 



